Skip to content

Conversation

austinderek
Copy link

  • Add coverage package source files to cache invalidation calculation
  • Include GoFiles and CgoFiles from testCoverPkgs in computeTestInputsID
  • Ensure cache is invalidated when any covered source file changes
  • Prevent mixing old and new coverage data in profiles
  • Add test case to reproduce and verify the fix

Fixes golang#23565 where cached coverage profiles with -coverpkg contained outdated line references when source files were modified but tests didn't directly depend on the changed packages.


🔄 This is a mirror of upstream PR #74773

@austinderek austinderek force-pushed the master branch 30 times, most recently from 7a1679d to 121e5bb Compare August 5, 2025 07:05
@austinderek austinderek force-pushed the master branch 30 times, most recently from 7bba745 to 37c78b5 Compare September 1, 2025 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants